import Vue from 'vue'
import Router from 'vue-router'
import View from '@/view/index'
import layout from '@/layout/index.vue'
import activeComponent from '@/layout/active.vue'
import lifeList from './lifeList'
import actives from './active'
Vue.use(Router)

export default new Router({
  // mode: 'history',
  routes: [
    
    {
      path: '/',
      redirect: '/index',
      name: 'active',
      component: activeComponent,
      children: actives
    },
    {
      path: '/life',
      name: 'life',
      component: layout,
      children: lifeList
    }
  ]
})
